{layout name="public:layout" /}
<h4 class="text-center text-danger">更改专业信息</h4>
<form class="form-horizontal" action="{:url('admin/Major/doEdit')}" method="post">
  <div class="form-group">
    <label for="inputEmail1" class="col-sm-2 control-label">专业名称：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail1" name="major" value="{$majorInfo.major}" placeholder="{$majorInfo.major}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail2" class="col-sm-2 control-label">院系：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail2" name="department" value="{$majorInfo.department_id}" placeholder="{$majorInfo.department_id}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">专业编号：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail3" name="major_number" value="{$majorInfo.major_number}" placeholder="{$majorInfo.major_number}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail4" class="col-sm-2 control-label">国际专业代码：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail4" name="major_code" value="{$majorInfo.major_code}" placeholder="{$majorInfo.major_code}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail5" class="col-sm-2 control-label">学制：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail5" name="learning" value="{$majorInfo.learning}" placeholder="{$majorInfo.learning}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail6" class="col-sm-2 control-label">培养层次：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail6" name="level" value="{$majorInfo.level}" placeholder="{$majorInfo.level}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail7" class="col-sm-2 control-label">所属学科：</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="inputEmail7" name="subject" value="{$majorInfo.subject}" placeholder="{$majorInfo.subject}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail8" class="col-sm-2 control-label">状态：</label>
    <div class="col-sm-8">
      <select class="form-control" name="status">
          <option value="1">启用</option>
          <option value="0">禁用</option>
        </select>
    </div>
  </div>
<!--    将当前用户的id作为隐藏域偷偷的传到服务器上去-->
    <input type="hidden" name="id" value="{$majorInfo.id}">
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-8">
      <button type="submit" class="btn btn-info">提交</button>
    </div>
  </div>
</form>